<?php

namespace App\Models\Posts;

use App\Models\User\WxUser;
use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class WxLike extends Model
{
	use HasDateTimeFormatter;
//    use SoftDeletes;

    protected $table = 'wx_like';

    public function user()
    {
        return $this->hasOne(WxUser::class,'id','user_id');
    }

    public function post()
    {
        return $this->belongsTo(WxPost::class, 'posts_id', 'id');
    }

}
